﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AntdUI_HamburgerMenuTabs.Forms
{
    public partial class Msgbox : AntdUI.Window
    {
        private readonly string msg = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

        public Msgbox()
        {
            InitializeComponent();

            AcceptButton = btnOk;
            CancelButton = btnCancel;

            inputMsg.BorderActive = Color.Transparent;

            button1.Click += (s, e) =>
            {
                inputMsg.Text += $"\r\n{msg}";
            };

            btnOk.Click += (s, e) =>
            {
                DialogResult = DialogResult.OK;
            };

            btnCancel.Click += (s, e) =>
            {
                DialogResult = DialogResult.Cancel;
            };
        }
    }
}